package com.ljz.service.impl;

import com.ljz.entity.Role;
import com.ljz.mapper.RoleMapper;
import com.ljz.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;
    @Override
    public List<Role> getRoles() {
        return roleMapper.findRoleAll();
    }
}
